package com.lss.cloud.config;

import feign.Logger;
import feign.Retryer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 2024/3/16-16:59
 * 功能:
 */
@Configuration
public class FeginConfig {

    @Bean
    public Retryer retryer() {
         return new Retryer.Default(100,1,3);
       // return Retryer.NEVER_RETRY;
    }

    /**
     * 设置 fegin 日志输出 水平
     * @return
     */
    @Bean
    Logger.Level level(){
        return Logger.Level.FULL;
    }
}
